import axios from '../AxiosConfig.js'

export const getIndexVDO = () => {
    return axios({
        method: 'get',
        url: '/api/cms/site/vdo/index'
    })
}

export const createSite = (data) => {
    return axios({
        method: 'post',
        url: '/api/cms/site',
        data: data
    })
}

export const deleteSite = (ukId) => {
    return axios({
        method: 'delete',
        url: '/api/cms/site',
        params: {"ukId": ukId}
    })
}

export const updateSite = (data) => {
    return axios({
        method: 'put',
        url: '/api/cms/site',
        data: data
    })
}

export const selectSite = (ukId) => {
    return axios({
        method: 'get',
        url: '/api/cms/site',
        params: {"ukId": ukId}
    })
}

export const listSite = () => {
    return axios({
        method: 'get',
        url: '/api/cms/site/list'
    })
}




